package cn.seaboot.admin.other.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * POJO
 * 系统公告 [t_sys_bulletin]
 * <p>
 *
 * @author ChenSS on  2019-03-25 11:40
 */
@Schema(description = "系统公告 [t_sys_bulletin] 实体类")
public class Bulletin implements Serializable {
    private static final long serialVersionUID = 5749218842662705823L;
    /**
     * ID
     */
    @NotNull()
    @Schema(description = "ID")
    private String id;
    /**
     * 用户
     */
    @NotNull
    @Schema(description = "用户")
    private String userId;
    /**
     * 类型
     */
    @NotNull
    @Schema(description = "类型")
    private Integer bulletinType;
    /**
     * 公告标题
     */
    @NotNull
    @Schema(description = "公告标题")
    private String bulletinTitle;
    /**
     * 公告归属
     */
    @NotNull
    @Schema(description = "公告归属")
    private String bulletinOwner;
    /**
     * 内容
     */
    @Size(max = 65535)
    @Schema(description = "内容")
    private String content;
    /**
     * 创建日期
     */
    @Schema(description = "创建日期")
    private LocalDateTime gmtCreate;
    /**
     * 修改日期
     */
    @Schema(description = "修改日期")
    private LocalDateTime gmtModified;
    /**
     * 修改日期
     */
    @Schema(description = "公布日期")
    private LocalDateTime gmtPublish;

    /**
     * 公告状态
     */
    @Schema(description = "公告状态")
    private Integer bulletinStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getBulletinType() {
        return bulletinType;
    }

    public void setBulletinType(Integer bulletinType) {
        this.bulletinType = bulletinType;
    }

    public String getBulletinTitle() {
        return bulletinTitle;
    }

    public void setBulletinTitle(String bulletinTitle) {
        this.bulletinTitle = bulletinTitle;
    }

    public String getBulletinOwner() {
        return bulletinOwner;
    }

    public void setBulletinOwner(String bulletinOwner) {
        this.bulletinOwner = bulletinOwner;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public LocalDateTime getGmtPublish() {
        return gmtPublish;
    }

    public void setGmtPublish(LocalDateTime gmtPublish) {
        this.gmtPublish = gmtPublish;
    }

    public Integer getBulletinStatus() {
        return bulletinStatus;
    }

    public void setBulletinStatus(Integer bulletinStatus) {
        this.bulletinStatus = bulletinStatus;
    }

    @Override
    public String toString() {
        return "Bulletin{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", bulletinType=" + bulletinType +
                ", bulletinTitle='" + bulletinTitle + '\'' +
                ", bulletinOwner='" + bulletinOwner + '\'' +
                ", content='" + content + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", gmtPublish=" + gmtPublish +
                ", bulletinStatus=" + bulletinStatus +
                '}';
    }
}
